<template>
  <div class="main">
    <div class="header">
      <div>
        <i class="iconfont icon-back"></i>
      </div>
      <div>
        <h2>个人中心</h2>
      </div>
      <div>
        <i class="iconfont icon-gengduo"></i>
      </div>
    </div>
    <div class="content">
      <div class="head-image">
        <div class="left">
          <h6>设置</h6>
          <img src="../image/Taylor.jpg" alt="头像">
          <span class="uname">Taylor</span>
        </div>
        <div class="right"></div>
      </div>
      <ul class="user-list">
        <li>购买记录
          <i class="iconfont icon-more"></i>
        </li>
        <li>修改个人资料
          <i class="iconfont icon-more"></i>
        </li>
        <li>地址管理
          <i class="iconfont icon-more"></i>
        </li>
        <li>我的订单
          <i class="iconfont icon-more"></i>
        </li>
      </ul>
    </div>
    <Footer></Footer>
  </div>
</template>

<script>
import Footer from "../template/footer";
export default {
  name: "userComponent",
  components: {
    Footer
  }
};
</script>

<style scoped lang="less">
.main {
  color: #ffffff;
}
.header {
  display: flex;
  height: 80px;
  background-color: #6a7531;
  div {
    width: 33.33%;
    height: 80px;
    line-height: 80px;
    font-size: 36px;
    h2 {
      text-align: center;
    }
    i {
      font-size: 52px;
    }
  }
  div:first-child {
    text-align: left;
    i {
      margin-left: 15px;
    }
  }
  div:last-child {
    text-align: right;
    i {
      margin-right: 15px;
    }
  }
}
.content {
  .head-image {
    display: flex;
    height: 300px;
    background-color: #ff6f00;
    div {
      width: 50%;
    }
    .left {
      h6 {
        font-size: 30px;
        margin: 18px 0 30px 15px;
      }
      img {
        float: left;
        width: 146px;
        height: 146px;
        border: #ffffff 4px solid;
        border-radius: 50%;
        margin: 0 20px 0 15px;
      }
      span {
        font-size: 36px;
        line-height: 154px;
      }
    }
    .right {
      background-image: url("../image/multicolor.png");
      background-repeat: no-repeat;
      background-size: 100% 100%;
    }
  }
  .user-list {
    list-style: none;
    color: #333333;
    font-size: 30px;
    li {
      height: 60px;
      line-height: 60px;
      background-color: #f4f4f4;
      margin: 30px 0 30px 0;
      padding-left: 15px;
      i {
        font-size: 36px;
        float: right;
        margin-right: 34px;
      }
    }
    li:hover {
      color: #fb0303;
    }
  }
}
</style>